package com.csu.client.module.messageProcess;

import com.csu.client.module.vo.Cache;
import com.csu.message.BaseMessage;
import com.daohang361.imqq.ui.EIMTalkFrame;
import com.daohang361.imqq.ui.FrameEarthquakeCenter;

public class ShockFrameMessageProcess implements IMessageProcess {

	public void processMessage(BaseMessage message) {
		final String destQQ=message.getSrcQQ();
		java.awt.EventQueue.invokeLater(new Runnable() {
			public void run() {
				Cache cache=Cache.getInstance();
				EIMTalkFrame talkFrame=cache.getTalkFrame(destQQ);
				talkFrame.pack();
				FrameEarthquakeCenter dec = new FrameEarthquakeCenter(talkFrame);
				talkFrame.setVisible(true);
				dec.startShake();
			}
		});
	}

}
